<?php

use yii\helpers\Html;
use kartik\widgets\ActiveForm;
use kartik\builder\Form;
use kartik\datecontrol\DateControl;

/**
 * @var yii\web\View $this
 * @var backend\modules\trancfg\models\Maintran $model
 * @var yii\widgets\ActiveForm $form
 */
?>

<div class="maintran-form">

    <?php $form = ActiveForm::begin(['type'=>ActiveForm::TYPE_HORIZONTAL]); echo Form::widget([

    'model' => $model,
    'form' => $form,
    'columns' => 1,
    'attributes' => [

'TESTINFOLVL'=>['type'=> Form::INPUT_TEXT, 'options'=>['placeholder'=>'Enter Testinfolvl...']], 

'MTID'=>['type'=> Form::INPUT_TEXT, 'options'=>['placeholder'=>'Enter Mtid...', 'maxlength'=>6]], 

'MTNAME'=>['type'=> Form::INPUT_TEXT, 'options'=>['placeholder'=>'Enter Mtname...', 'maxlength'=>32]], 

'SUBSYSID'=>['type'=> Form::INPUT_TEXT, 'options'=>['placeholder'=>'Enter Subsysid...', 'maxlength'=>3]], 

'TRANKIND'=>['type'=> Form::INPUT_TEXT, 'options'=>['placeholder'=>'Enter Trankind...', 'maxlength'=>2]], 

'TRANMODE'=>['type'=> Form::INPUT_TEXT, 'options'=>['placeholder'=>'Enter Tranmode...', 'maxlength'=>2]], 

'TRANLVL'=>['type'=> Form::INPUT_TEXT, 'options'=>['placeholder'=>'Enter Tranlvl...', 'maxlength'=>2]], 

'SYSTYPE'=>['type'=> Form::INPUT_TEXT, 'options'=>['placeholder'=>'Enter Systype...', 'maxlength'=>1]], 

'COMMODE'=>['type'=> Form::INPUT_TEXT, 'options'=>['placeholder'=>'Enter Commode...', 'maxlength'=>1]], 

'PKGMODE'=>['type'=> Form::INPUT_TEXT, 'options'=>['placeholder'=>'Enter Pkgmode...', 'maxlength'=>1]], 

'MACCHK'=>['type'=> Form::INPUT_TEXT, 'options'=>['placeholder'=>'Enter Macchk...', 'maxlength'=>1]], 

'TELLERCHK'=>['type'=> Form::INPUT_TEXT, 'options'=>['placeholder'=>'Enter Tellerchk...', 'maxlength'=>1]], 

'BRCCHK'=>['type'=> Form::INPUT_TEXT, 'options'=>['placeholder'=>'Enter Brcchk...', 'maxlength'=>1]], 

'EXTFLAG1'=>['type'=> Form::INPUT_TEXT, 'options'=>['placeholder'=>'Enter Extflag1...', 'maxlength'=>1]], 

'EXTFLAG2'=>['type'=> Form::INPUT_TEXT, 'options'=>['placeholder'=>'Enter Extflag2...', 'maxlength'=>1]], 

'EXTFLAG3'=>['type'=> Form::INPUT_TEXT, 'options'=>['placeholder'=>'Enter Extflag3...', 'maxlength'=>1]], 

'EXTFLAG4'=>['type'=> Form::INPUT_TEXT, 'options'=>['placeholder'=>'Enter Extflag4...', 'maxlength'=>1]], 

'EXTFLAG5'=>['type'=> Form::INPUT_TEXT, 'options'=>['placeholder'=>'Enter Extflag5...', 'maxlength'=>1]], 

'EXTFLAG6'=>['type'=> Form::INPUT_TEXT, 'options'=>['placeholder'=>'Enter Extflag6...', 'maxlength'=>1]], 

'EXTITEM1'=>['type'=> Form::INPUT_TEXT, 'options'=>['placeholder'=>'Enter Extitem1...', 'maxlength'=>1]], 

'EXTITEM2'=>['type'=> Form::INPUT_TEXT, 'options'=>['placeholder'=>'Enter Extitem2...', 'maxlength'=>1]], 

'EXTITEM3'=>['type'=> Form::INPUT_TEXT, 'options'=>['placeholder'=>'Enter Extitem3...', 'maxlength'=>1]], 

'EXTITEM4'=>['type'=> Form::INPUT_TEXT, 'options'=>['placeholder'=>'Enter Extitem4...', 'maxlength'=>1]], 

'EXTITEM5'=>['type'=> Form::INPUT_TEXT, 'options'=>['placeholder'=>'Enter Extitem5...', 'maxlength'=>1]], 

'EXTITEM6'=>['type'=> Form::INPUT_TEXT, 'options'=>['placeholder'=>'Enter Extitem6...', 'maxlength'=>1]], 

    ]


    ]);
    echo Html::submitButton($model->isNewRecord ? 'Create' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']);
    ActiveForm::end(); ?>

</div>
